<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Kisebo: Código-Fonte de src/kisebo/Usuario.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Gerado por Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;Principal</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
    </ul>
  </div>
<h1>src/kisebo/Usuario.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef USUARIO_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define USUARIO_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#include &lt;fstream&gt;</span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;sstream&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;cstdlib&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include "Interesse.h"</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include "Livro.h"</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="keyword">using namespace </span>std;
<a name="l00020"></a><a class="code" href="classUsuario.html">00020</a> <span class="keyword">class </span><a class="code" href="classUsuario.html" title="Entidade Usuario.">Usuario</a>
<a name="l00021"></a>00021 {
<a name="l00022"></a>00022 <span class="keyword">private</span>:
<a name="l00023"></a>00023         <span class="keywordtype">long</span> ID;        
<a name="l00024"></a>00024         <span class="keywordtype">string</span> Login;   
<a name="l00025"></a>00025         <span class="keywordtype">string</span> Senha;
<a name="l00026"></a>00026         <span class="keywordtype">string</span> Nome;
<a name="l00027"></a>00027         <span class="keywordtype">string</span> CEP;
<a name="l00028"></a>00028         <span class="keywordtype">string</span> Endereco;
<a name="l00029"></a>00029         <span class="keywordtype">string</span> Complemento;
<a name="l00030"></a>00030         <span class="keywordtype">string</span> Telefone;
<a name="l00031"></a>00031 
<a name="l00032"></a>00032         vector&lt;Interesse&gt; interesses;
<a name="l00033"></a>00033         vector&lt;Livro&gt; livros;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="keyword">public</span>:
<a name="l00036"></a>00036         <a class="code" href="classUsuario.html#a85a5371a098dfba5449140d9b8a472f" title="Construtor.">Usuario</a>();
<a name="l00037"></a>00037         <span class="keyword">virtual</span> <a class="code" href="classUsuario.html#b4096b0b8300ecb47b10c555fb09c997">~Usuario</a>();
<a name="l00038"></a>00038 
<a name="l00039"></a>00039         vector&lt;Interesse&gt; <a class="code" href="classUsuario.html#0cac94f1e06aaefcfe5cd87f7ad58e5b" title="Retorna Interesses.">GetInteresses</a>();
<a name="l00040"></a>00040         <a class="code" href="classInteresse.html" title="Entidade Interesse.">Interesse</a> <a class="code" href="classUsuario.html#2c0e9e123785fea0d742f77966f02e61" title="Retorna Interesse por posição.">GetInteresse</a>(<span class="keywordtype">int</span> pos);
<a name="l00041"></a>00041         <span class="keywordtype">void</span> <a class="code" href="classUsuario.html#5f88c26b0289ac2d1dbc1dd37ef1635d" title="Adiciona um interesse ao Usuário.">AdicionaInteresse</a>(<a class="code" href="classInteresse.html" title="Entidade Interesse.">Interesse</a> it);
<a name="l00042"></a>00042         <span class="keywordtype">void</span> <a class="code" href="classUsuario.html#98e537ebf059accebe6ea52827ad0c68" title="Grava os interesses do usuário no arquivo.">GravaInteresses</a>();
<a name="l00043"></a>00043         <span class="keywordtype">void</span> <a class="code" href="classUsuario.html#7b3a080505eb7aa22d0876ca6be5c553" title="Carrega os interesses do usuário no vetor de interesses.">CarregaInteresses</a>();
<a name="l00044"></a>00044 
<a name="l00045"></a>00045         vector&lt;Livro&gt; <a class="code" href="classUsuario.html#5220b8841be7c95f288878d6bbba84e0" title="Retorna o vetor de livros de interesses.">GetLivrosDeInteresses</a>();
<a name="l00046"></a>00046         <a class="code" href="classLivro.html" title="Entidade Livro.">Livro</a> <a class="code" href="classUsuario.html#da723286f11d50dc0a792c183689c1b4" title="Retorna um determinado livro de interesse.">GetLivroDeInteresse</a>(<span class="keywordtype">int</span> pos);
<a name="l00047"></a>00047         <span class="keywordtype">void</span> <a class="code" href="classUsuario.html#ebc85cf48e5fc4606c99a3e10e6d71fa" title="Insere um livro no vetor de livros de interesse.">AdicionaLivroDeInteresse</a>(<a class="code" href="classLivro.html" title="Entidade Livro.">Livro</a> li);
<a name="l00048"></a>00048         <span class="keywordtype">void</span> <a class="code" href="classUsuario.html#b5b66c91599176242f4f7bc86ffcbe39" title="Grava os livros interesses do usuário no arquivo.">GravaLivrosDeInteresses</a>();
<a name="l00049"></a>00049         vector&lt;long&gt; <a class="code" href="classUsuario.html#2ffbe8e27850a95e44c648a471e8f617" title="Carrega os livros de interesses do usuário no vetor de livros de interesses.">CarregaLivrosDeInteresses</a>();
<a name="l00050"></a>00050 
<a name="l00051"></a>00051         <span class="comment">// Metodos de Acesso</span>
<a name="l00052"></a>00052         <span class="keywordtype">long</span> <a class="code" href="classUsuario.html#3f29b42b1de7a74fced64f226defa786" title="Retorna o ID do usuário.">GetID</a>();
<a name="l00053"></a>00053         <span class="keywordtype">void</span> <a class="code" href="classUsuario.html#08bc0f3448ecb64f2845710ce9cbc039" title="Seta o login do usuário.">SetLogin</a>( <span class="keywordtype">string</span> l );
<a name="l00054"></a>00054         <span class="keywordtype">void</span> <a class="code" href="classUsuario.html#d3039faf3d0e0d806f9043e178b88436" title="Seta a senha do usuário.">SetSenha</a>( <span class="keywordtype">string</span> s );
<a name="l00055"></a>00055         <span class="keywordtype">void</span> <a class="code" href="classUsuario.html#321db598455a4382e62f97ae6cbafeb4" title="Seta o ID do usuário.">SetID</a>( <span class="keywordtype">long</span> <span class="keywordtype">id</span>);
<a name="l00056"></a>00056         <span class="keywordtype">string</span> <a class="code" href="classUsuario.html#54ba052be451a6e689d5fb95291f21fe" title="Retorna o login do usuário.">GetLogin</a>();
<a name="l00057"></a>00057 };
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="preprocessor">#endif </span><span class="comment">/*USUARIO_H_*/</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Gerado em Wed Dec 3 16:28:03 2008 para Kisebo por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
